package work1.work5;

import java.util.ArrayList;
import java.util.List;
class Students {
    private String name;
    private int age;

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    Students(){

    }
    Students(String name,int age){

    }
}


public class Student {
    public static void main(String[] args) {
        Students s1 = new Students("林青霞", 5);
        Students s2 = new Students("林志玲", 40);
        Students s3 = new Students("凤姐", 35);
        Students s4 = new Students("芙蓉姐姐", 18);
        Students s5 = new Students("翠花", 16);
        Students s6 = new Students("林青霞", 27);
        Students s7 = new Students("林青霞", 18);
        List<Students> list = new ArrayList<Students>();
        list.add(s1);
        list.add(s2);
        list.add(s3);
        list.add(s4);
        list.add(s5);
        list.add(s6);
        list.add(s7);

    }
}
